<?
// *************************************
// * conferences.php allows the admin to
// * View/Edit and Delete Transition related
// * conference listings.
// *************************************
$sajax = 1;
define('SITE_AREA', 'conferences');

$jsFile = "jsConferences.js";
include("includes/functions.php");
include($pre."includes/sajax/sajaxConferences.php");

sajax_init();
$sajax_request_type = "POST"; 
sajax_export("getConferences");
sajax_export("deleteConference");
sajax_export("editConference");
sajax_export("saveConference");
sajax_handle_client_request();

include("includes/header.php"); ?>
	<div id="content0">
		<div id="buttonNew" style="float: left; width: 180px;"><input type="button" class="buttonBig buttonAddBig" value="New" onClick="addConference();" title="Add new conference" id="buttonAdd" /></div>
		<div id="statusDiv" style="float: left;"></div>
		<div style="clear: left; height: 10px;"></div>
		
		<div id="content0FormDiv">
		<div id="formNew" class="blueBox" style="display: none;">		
			<input type="hidden" id="formAction" />
			<input type="hidden" id="cID" />
			
			<p><label class="vertLabel">Conference Title</label>
			<input type="text" style="width: 400px;" id="cTitle" name="cTitle" /></p>
			
			<p><label class="vertLabel">Short description</label>
			<textarea name="cShortDesc" id="cShortDesc" class="somewhatAdvanced" style="width: 100%; height: 200px;"></textarea>
			</p>
						
			<p><label class="vertLabel">Conference Date(s)</label>
			<div style="margin-left: 6px;">
				<div style="float: left; width: 200px;"><input type="text" id="cDateStart" style="display: none;" /></div>
				<div style="float: left; width: 185px;"><input type="text" id="cDateEnd" /></div>
				<div style="float: left;">
					<? //toolTip('eventFormDates'); echo $toolTip; ?>
				</div>
			<div style="clear: float;"></div></div>
			</p><br /><br />
			
			<p><label class="vertLabel">Conference URL (Link)</label>
			<input type="text" style="width: 400px;" id="cURL" name="cURL" /></p>
			
									
			<p style="margin-top: 15px; margin-left: 6px;">
				<input type="button" class="buttonBig buttonSaveBig" onClick="saveConference();" value="Save" title="Save conference" />
				<input type="button" class="buttonBig buttonCancelBig" onClick="cancelConference();" value="Cancel" title="Cancel" />
			</p>			
		</div>
		</div>
		<div><h3>Current Conferences</h3></div>
		<div id="currentConferences" style="margin-top: 20px;"></div>
	</div>
		
	<div id="south" class="x-layout-inactive-content">
	south - generally for informational stuff, also could be for status bar
	</div>
<? include("includes/footer.php"); ?>